<template>
    <p>父组件当前的值为：{{ number }}</p>
    <VCustomSub @updateCount="updateEmitCount"/>
</template>

<script setup>
import { ref } from 'vue';
import VCustomSub from './VCustomSub.vue';

const number = ref(10)
const updateEmitCount = (value) =>{
    number.value += value
}
</script>

<style scoped>

</style>